package io.bdmc.modules.bss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceMachineOpm;
import io.bdmc.modules.bss.mapper.DeviceMachineOpmMapper;
import io.bdmc.modules.bss.service.IDeviceMachineOpmService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 黄露
 * @since 2021-05-21
 */
@Service
public class DeviceMachineOpmServiceImpl extends ServiceImpl<DeviceMachineOpmMapper, DeviceMachineOpm> implements IDeviceMachineOpmService {
    @Autowired
    DeviceMachineOpmMapper _devicemachineopmMapper;

    @Override
    public MyPage<DeviceMachineOpm> mySelectPage(MyPage<DeviceMachineOpm> myPage) {
        return _devicemachineopmMapper.mySelectPage(myPage);
    }

    @Override
    public DeviceMachineOpm selectLastOpmData(String diskSn) {
        return _devicemachineopmMapper.selectLastOpmData(diskSn);
    }

    @Override
    public MyPage<DeviceMachineOpm> selectPage(MyPage<DeviceMachineOpm> opmPage, QueryWrapper<DeviceMachineOpm> w7) {
        return _devicemachineopmMapper.selectPage(opmPage,w7);
    }
}
